﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SilentVoice.Models;
using SilentVoice.Data;
using System.Security.Principal;
using System.Threading;
using System.Security.Permissions;

namespace SilentVoice.Business
{
    public class Security
    {
        private UserManagement userManager;

        public Security()
        {
            userManager = new UserManagement();
        }

        public User Login(string username, string password)
        {
            User loggedInUser = userManager.Login(username, password);

            return loggedInUser;
        }

        public User Logout()
        {
            throw new NotImplementedException();
        }

        public Role GetRole(User user)
        {
            return userManager.GetRole(user);
        }

    }
}
